<template>
  <div>
    <!--  default-active :　默认选中的菜单
            :router="true" true表示开启路由模式,开启之后, index值代表的就是路由地址
    -->
    <el-menu
      :router="true"
      :default-active="$route.path"
      class="el-menu-vertical-demo"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
    >
      <el-menu-item-group>
        <span slot="title" class="span-font-size">财务报表</span>
        <el-menu-item index="/finance/complexStatistic">
          <i class="el-icon-s-home"></i>
          <span slot="title">综合统计</span>
        </el-menu-item>
        <el-menu-item index="/finance/salesStatistic">
          <i class="el-icon-user-solid"></i>
          <span slot="title">销售统计</span>
        </el-menu-item>
      </el-menu-item-group>
      <el-menu-item-group>
        <span slot="title" class="span-font-size">对账管理</span>
        <el-menu-item index="/finance/reconciliationList">
          <i class="el-icon-user"></i>
          <span slot="title">对账列表</span>
        </el-menu-item>
      </el-menu-item-group>
    </el-menu>
  </div>
</template>

<style scoped>
.span-font-size {
  font-size: 16px;
}
.el-menu {
  border-right: none;
}
</style>
